package controller.gui;

import java.awt.Frame;

import mapelements.MapElement;
import gui.MapEditorFrame;
import gui.SelectionBox;

/**rappresenta un controller che gestisce una selectionBox atta a contenere i concept dei MapElements
 * 
 * @author koldar
 * @version 1.1
 */
public class ConceptSelectionBoxController extends SelectionBoxController{

	public ConceptSelectionBoxController(Frame frame,SelectionBox boxwired,InsertionDisplayController displayController, Class<?> _classFather) {
		super(frame, boxwired,displayController, _classFather);
	}

	@Override
	protected void addToSelectionBox(String name, Class clazz) {
		this.listenedBox.addEntry(name,clazz);
	}

	@Override
	protected void transferClassToDisplayController(Class<?> classToTransfer) {
		this.insertionDisplayController.setConceptToAdd((Class<MapElement>) classToTransfer);
	}

}
